class MyCourseItem {
  String couCover;
  int couId;
  String couName;
  String joinTime;
  int num;
  int process;
  String teaName;

  MyCourseItem(
      {this.couCover,
        this.couId,
        this.couName,
        this.joinTime,
        this.num,
        this.process,
        this.teaName});

  MyCourseItem.fromJson(Map<String, dynamic> json) {
    couCover = json['couCover'];
    couId = json['couId'];
    couName = json['couName'];
    joinTime = json['joinTime'];
    num = json['num'];
    process = json['process'];
    teaName = json['teaName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['couCover'] = this.couCover;
    data['couId'] = this.couId;
    data['couName'] = this.couName;
    data['joinTime'] = this.joinTime;
    data['num'] = this.num;
    data['process'] = this.process;
    data['teaName'] = this.teaName;
    return data;
  }
}
class MyCourseItemList {

  List<MyCourseItem> list;
  MyCourseItemList(this.list);
  factory MyCourseItemList.formJson(List<dynamic> list){
    return MyCourseItemList(
        list.map((item)=>MyCourseItem.fromJson((item))).toList()
    );
  }
}
